<?php

namespace App\Http\Controllers\WorkOrder\Web;

use App\Http\Controllers\BaseController;
use App\Service\WorkOrder\Web\ProblemFeedbackWebService;
use Illuminate\Http\Request;

class ProblemFeedbackWebController extends BaseController
{
    public function getWorkOrderInfoByNo(Request $request)
    {
        $this->validate($request, [
            'workOrderNo' => 'required|string'
        ]);
        return $this->success(ProblemFeedbackWebService::getWorkOrderInfo($request->workOrderNo));
    }
}
